﻿using SqlSugar;
using System;

namespace Raffles.OA.Data
{
    /// <summary>
    /// 日 期：2024-06-06 10:42:22
    /// 描 述：系统日志实体类
    /// </summary>
    [SugarTable("Sys_Log")]
    public class Log : BaseEntity
    {
        /// <summary>
        /// 日志类型
        /// </summary>
        public int LogType { get; set; }
        /// <summary>
        /// 类名
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 方法名
        /// </summary>
        public string MethodName { get; set; }
        /// <summary>
        /// 实体类名称
        /// </summary>
        public string EntityName { get; set; }
        /// <summary>
        /// 操作数据主键
        /// </summary>
        public int? DataId { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public string Parameter { get; set; }
        /// <summary>
        /// 日志描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 旧实体
        /// </summary>
        public string OldEntity { get; set; }
        /// <summary>
        /// 新实体
        /// </summary>
        public string NewEntity { get; set; }
        /// <summary>
        /// 耗时
        /// </summary>
        public int? ExecuteTime { get; set; }
        /// <summary>
        /// 执行结果
        /// </summary>
        public int? ExecuteResult { get; set; }
        /// <summary>
        /// 执行返回结果
        /// </summary>
        public string ExecuteResultData { get; set; }
        /// <summary>
        /// 执行结果日志
        /// </summary>
        public string ExecuteExceptionLog { get; set; }
        /// <summary>
        /// 操作人账户
        /// </summary>
        public string OperateAccount { get; set; }
        /// <summary>
        /// 操作人姓名
        /// </summary>
        public string OperateRealName { get; set; }
        /// <summary>
        /// 操作人IP地址
        /// </summary>
        public string OperateIPAddress { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedOn { get; set; }
    }
}
